Terminate Instance
AutomatR.AWS.Activities.TerminateInstance
The "Terminate Instance" activity in AutomatR is part of the AWS activities package, allowing the termination of an Amazon Elastic Compute Cloud (EC2) instance. This activity is useful for managing EC2 instances within AWS, providing the capability to automate instance termination.
Properties
Name | Description |
---|---|
Input | |
Access Key ID | Provides the encrypted access key ID for your AWS account, enabling connection to the Amazon Recognition service. String variables containing the access key ID. |
Instance ID | Specifies the valid instance ID of the EC2 instance that you want to terminate. String variables containing the instance ID. |
Region | Specifies the valid AWS region where your EC2 instance is created. RegionEndpoint variables containing the AWS region. |
Secret Access Key | Provides the encrypted secret access key ID for your AWS account, enabling connection to the Amazon Recognition service. String variables containing the secret access key. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Terminate Instance" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Terminate Instance" activity onto the workflow.
- Configure the properties by providing the access key ID, secret access key, region, and instance ID.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to terminate the specified EC2 instance within AWS.
Example: Consider an example where the "Terminate Instance" activity is used to terminate an EC2 instance with the ID "i-0123456789abcdef0":
Terminate Instance:
Display Name: "Terminate My EC2 Instance"
Access Key ID: "{YourAccessKey}"
Secret Access Key: "{YourSecretKey}"
Region: "us-east-1"
Instance ID: "i-0123456789abcdef0"
In this example, the activity terminates the EC2 instance with the specified ID in the "us-east-1" region using the provided access and secret keys. Adjust the input parameters according to your AWS environment.